<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, http://code.google.com/p/wwwsqldesigner/ -->
<!-- Active URL: http://ondras.zarovi.cz/sql/demo/?keyword=default -->
<sql>
<datatypes db="mysql">
	<group label="Numeric" color="rgb(238,238,170)">
		<type label="Integer" length="0" sql="INTEGER" re="INT" quote=""/>
		<type label="Decimal" length="1" sql="DECIMAL" re="DEC" quote=""/>
		<type label="Single precision" length="0" sql="FLOAT" quote=""/>
		<type label="Double precision" length="0" sql="DOUBLE" re="DOUBLE" quote=""/>
	</group>

	<group label="Character" color="rgb(255,200,200)">
		<type label="Char" length="1" sql="CHAR" quote="'"/>
		<type label="Varchar" length="1" sql="VARCHAR" quote="'"/>
		<type label="Text" length="0" sql="MEDIUMTEXT" re="TEXT" quote="'"/>
		<type label="Binary" length="1" sql="BINARY" quote="'"/>
		<type label="Varbinary" length="1" sql="VARBINARY" quote="'"/>
		<type label="BLOB" length="0" sql="BLOB" re="BLOB" quote="'"/>
	</group>

	<group label="Date &amp; Time" color="rgb(200,255,200)">
		<type label="Date" length="0" sql="DATE" quote="'"/>
		<type label="Time" length="0" sql="TIME" quote="'"/>
		<type label="Datetime" length="0" sql="DATETIME" quote="'"/>
		<type label="Year" length="0" sql="YEAR" quote=""/>
		<type label="Timestamp" length="0" sql="TIMESTAMP" quote="'"/>
	</group>
	
	<group label="Miscellaneous" color="rgb(200,200,255)">
		<type label="ENUM" length="1" sql="ENUM" quote=""/>
		<type label="SET" length="1" sql="SET" quote=""/>
	</group>
</datatypes><table x="273" y="101" name="Field">
<row name="ID" null="0" autoincrement="1">
<datatype>INTEGER</datatype>
</row>
<row name="Name" null="1" autoincrement="0">
<datatype>VARCHAR(80)</datatype>
<default>NULL</default></row>
<row name="Description" null="1" autoincrement="0">
<datatype>VARCHAR(max)</datatype>
<default>NULL</default></row>
<row name="DataCreation" null="1" autoincrement="0">
<datatype>DATETIME</datatype>
<default>NULL</default></row>
<row name="AgreementAuthor" null="1" autoincrement="0">
<datatype>VARCHAR(60)</datatype>
<default>NULL</default></row>
<row name="TypeID" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Type" row="ID" />
</row>
<key type="PRIMARY" name="">
<part>ID</part>
</key>
</table>
<table x="572" y="177" name="Field_Value">
<row name="ID" null="0" autoincrement="1">
<datatype>INTEGER</datatype>
</row>
<row name="FieldID" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Field" row="ID" />
</row>
<row name="ValueID" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Value" row="ID" />
</row>
<key type="PRIMARY" name="">
<part>ID</part>
</key>
</table>
<table x="21" y="38" name="Groups">
<row name="ID" null="0" autoincrement="1">
<datatype>INTEGER</datatype>
</row>
<row name="Name" null="1" autoincrement="0">
<datatype>CHAR(60)</datatype>
<default>NULL</default></row>
<row name="CanRead" null="1" autoincrement="0">
<datatype>CHAR(1)</datatype>
<default>NULL</default></row>
<row name="CanAdd" null="1" autoincrement="0">
<datatype>CHAR(1)</datatype>
<default>NULL</default></row>
<row name="CanExport" null="1" autoincrement="0">
<datatype>CHAR(1)</datatype>
<default>NULL</default></row>
<row name="CanImport" null="1" autoincrement="0">
<datatype>CHAR(1)</datatype>
<default>NULL</default></row>
<row name="CanAddField" null="1" autoincrement="0">
<datatype>CHAR(1)</datatype>
<default>NULL</default></row>
<row name="CanDelField" null="1" autoincrement="0">
<datatype>CHAR(1)</datatype>
<default>NULL</default></row>
<row name="CanAddUsers" null="1" autoincrement="0">
<datatype>CHAR(1)</datatype>
<default>NULL</default></row>
<row name="CanDelUsers" null="1" autoincrement="0">
<datatype>CHAR(1)</datatype>
<default>NULL</default></row>
<row name="CanCreateGroups" null="1" autoincrement="0">
<datatype>CHAR(1)</datatype>
<default>NULL</default></row>
<row name="CanDelGroups" null="1" autoincrement="0">
<datatype>CHAR(1)</datatype>
<default>NULL</default></row>
<row name="CanCreateJournals" null="1" autoincrement="0">
<datatype>CHAR(1)</datatype>
<default>NULL</default></row>
<row name="CanDelJournals" null="1" autoincrement="0">
<datatype>CHAR(1)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>ID</part>
</key>
</table>
<table x="491" y="313" name="Journal">
<row name="ID" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="Name" null="1" autoincrement="0">
<datatype>VARCHAR(80)</datatype>
<default>NULL</default></row>
<row name="UserID" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Users" row="ID" />
</row>
<key type="PRIMARY" name="">
<part>ID</part>
</key>
</table>
<table x="248" y="350" name="Journal_Field">
<row name="ID" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="JournalID" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Journal" row="ID" />
</row>
<row name="FieldID" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Field" row="ID" />
</row>
<key type="PRIMARY" name="">
<part>ID</part>
</key>
</table>
<table x="262" y="564" name="Journal_Groups">
<row name="ID" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="JournalID" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Journal" row="ID" />
</row>
<row name="GroupsID" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Groups" row="ID" />
</row>
<key type="PRIMARY" name="">
<part>ID</part>
</key>
</table>
<table x="653" y="492" name="Journal_Users">
<row name="ID" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="JournalID" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Journal" row="ID" />
</row>
<row name="UsersID" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Users" row="ID" />
</row>
<key type="PRIMARY" name="">
<part>ID</part>
</key>
</table>
<table x="549" y="23" name="Type">
<row name="ID" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="Name" null="1" autoincrement="0">
<datatype>VARCHAR(30)</datatype>
<default>NULL</default></row>
<row name="Description" null="1" autoincrement="0">
<datatype>VARCHAR(max)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>ID</part>
</key>
</table>
<table x="895" y="100" name="Users">
<row name="ID" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="Name" null="1" autoincrement="0">
<datatype>VARCHAR(60)</datatype>
<default>NULL</default></row>
<row name="Password" null="1" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>NULL</default></row>
<row name="GroupsID" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Groups" row="ID" />
</row>
<key type="PRIMARY" name="">
<part>ID</part>
</key>
</table>
<table x="879" y="320" name="Value">
<row name="ID" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="BLOB" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><comment>޲ﬥ 魥沠򨯠sql_variant (MS SQL)</comment>
</row>
<row name="Time" null="1" autoincrement="0">
<datatype>DATETIME</datatype>
<default>NULL</default></row>
<row name="JournalID" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Journal" row="ID" />
</row>
<row name="Delete" null="1" autoincrement="0">
<datatype>BINARY</datatype>
<default>NULL</default><comment>Bit (MS SQL)</comment>
</row>
<row name="Draft" null="1" autoincrement="0">
<datatype>BINARY</datatype>
<default>NULL</default><comment>Bit (MS SQL)</comment>
</row>
<key type="PRIMARY" name="">
<part>ID</part>
</key>
</table>
</sql>
